package manager
{
	import utils.GameUtils;
	
	import view.effect.AEffect;
	import view.effect.BEffect;
	import view.effect.CEffect;
	import view.effect.DEffect;
	import view.effect.MouseEffect;

	/**
	 *
	 *@author CrazyChen 
	 *2013-4-3
	 */	
	public class EffectName
	{
		public static var A_EXPLODE:String = "A";
		
		public static var B_EXPLODE:String = "B";
		
		public static var C_EXPLODE:String = 'C';
		
		public static var D_EXPLODE:String = 'D';

		/**
		 * 获取BaseEffect Cls
		 * 
		 */
		public static function getEffectCls(name:String):Class{
				var cls:Class;
				switch(name){
					case A_EXPLODE:
						cls = AEffect;
						break;
					case B_EXPLODE:
						cls = BEffect;
						break;
					case C_EXPLODE:
						cls = CEffect;
						break;
					case D_EXPLODE:
						cls = DEffect;
						break;
				}
				if(cls==null)throw new Error("not find this cls！");
				return cls;
		}
		
		public static function getMovieClipCls(name:String):Class{
			var cls:Class;
			switch(name){
				case A_EXPLODE:
					cls = AExplode;
					break;
				case B_EXPLODE:
					cls = BExplode;
                    break;
				case C_EXPLODE:
					cls = CExplode;
					break;
				case D_EXPLODE:
					cls = GameUtils.getClsFromDomain('ui.ria.UnitExplode');
					break;
			}
			if(cls==null)throw new Error("not find this cls！");
			return cls;
		}
	}
}